<template>
	<view class="c-wrap">
		<view class="c-block">
			<view class="c-album">
				<view class="c-album__avatar">
					<image src="/static/assets/clogin/image/avatar.jpg" mode="" style="width: 35px;height: 35px;" ></image>
				</view>
				<view class="c-album__content">
					<text class="c-title" >{{sr.data.title}}</text>
					<view class="c-content">{{$t('clogin.label.publictime')}}: {{$u.timeFormat(sr.data.publictime, 'yyyy/mm/dd hh:MM')}}</view>
					<view class="c-block-full">
						<rich-text class="c-content" :nodes="sr.data.content"></rich-text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				options: null,
				sp: {
					id:null
				},
				param: {

				},
				sr: {
					data: {}
				}
			}
		},
		onLoad(options) {
			let that = this;
			that.options = options;
			that.sp.id = options.id;
		},
		onShow() {
			let that = this;
			that.cinit();
		},
		methods: {
			cinit() {
				let that = this;
				that._initPage(false, true);
				return;
			},
			_initPage(isForceDisplay, isRefresh) {
				let that = this;
				that.$u.c.ajaxget('csmwj/cloginuser/pagecloginnoticedetail', {
					id: that.sp.id
				}, function(res) {
					that.sr.data = res.data;
					that.sr.data.content = that.$u.c.richtextAdjust(that.sr.data.content);
				});
			},
		}
	}
</script>

<style lang="scss">

</style>
